/*
 * author      : 吴中勤 
 * date        : 2018/9/3
 * description : TODO
 */

package com.deepexi.adapter.sdk.moby.response;

import com.deepexi.adapter.common.BaseDto;
import com.google.gson.annotations.SerializedName;

public class BaseMobyResponse extends BaseDto {
    private static final String RESPONSE_SUCCESS = "success";
//    {
//        "payload": "seccuess",
//        "request_id": "2929a4b8-a7dd-4d67-91e8-7b737acc3a8a"
//    }

    private String payload;

    @SerializedName("request_id")
    private String requestId;


    public boolean isSuccess() {
        return RESPONSE_SUCCESS.equals(payload);
    }

    //  === setter & getter ===

    public String getPayload() {
        return payload;
    }

    public void setPayload(String payload) {
        this.payload = payload;
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }
}
